package com.atguigu.schedule.common;

public enum ResultCodeEnum {
    SUCCESS(200,"操作成功"),
    USERNAME_ERROR(501,"用户名错误"),
    PASSWORD_ERROR(503,"密码错误"),
    NOTLOGIN(504,"未登录"),
    USERNAME_USED(505,"用户名已被使用"),
    USERNAME_NOT_EXISTS(506,"用户名不存在"),
    SECURITY_QUESTIONS_NOT_FOUND(507,"未找到安全问题"),
    SECURITY_ANSWERS_INVALID(508,"安全问题答案错误"),
    PASSWORD_WEAK(509,"密码强度不够"),
    SECURITY_QUESTIONS_SET_FAILED(510,"安全问题设置失败"),
    SYSTEM_ERROR(500,"系统错误");


    private Integer code;
    private String message;
    private ResultCodeEnum(Integer code,String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode(){
        return code;
    }

    public String getMessage(){
        return message;
    }
}
